package top.ffhome.system.mapper;

import java.util.Set;

import org.apache.ibatis.annotations.Param;

import top.ffhome.common.mapper.BaseMapper;
import top.ffhome.system.entity.SysRole;

public interface SysRoleMapper extends BaseMapper<SysRole> {
	Set<Long> selectMenusByRoleId(Long roleId);

	long checkUsed(Long roleId);

	int deleteMenuRelation(Long id);

	int insertMenuRelation(@Param("roleId") Long roleId, @Param("menuIds") Set<Long> menuIds);
}
